home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / bldraw.cpp < prev    next >
C/C++ Source or Header  |  1994-10-10  |  405b  |  23 lines

  1. #include "bldraw.h"
  2.  
  3. BlockDraw::BlockDraw(rect coord)
  4.     {
  5.     w1 = new Window(coord, "", "", 0, NO_BORDER, NO_BORDER, FIXED);
  6.  
  7.     background(w1);
  8.  
  9.     rect r = textRect(w1->bound());
  10.  
  11.     draw = new Draw(r);
  12.  
  13.     add(draw);
  14.     draw->set_ret(1);
  15.  
  16.     }
  17. /////////////////////
  18. void BlockDraw::rearrange()
  19.     {
  20.     rect coord = textRect(w1->bound());
  21.     draw->repose(coord);
  22.     }
  23.